package com.example.transation.txlcncommon.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *  mybatis-plus 配置
 *
 * @Author luojm
 * @Date 12:58 2019/5/24
 */
@Configuration
@MapperScan("com.example.transation.txlcncommon.bean.mapper")
public class MybatisConfig {
    /**mybatis分页插件*/
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
